import request from '../utils/request';

export const preview = query => {
    return request({
        url: 'file/preview?path=' + query,
        method: 'get',
    });
};

// 下载模板
export function downLoadTemplate() {
    return request({
        url: '/file/downLoadExcel',
        method: 'post',
        responseType: 'blob'
    })
}

// 下载
export function downloadFile(query) {
    return request({
        url: '/file/download?path=' + query,
        method: 'get',
    })
}